<?php
/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
$dbh = sqlite_open('../database/sqlitedb.sqlite');
$query = sqlite_query($dbh, 'SELECT name, id FROM categories LIMIT 25');
$result = sqlite_fetch_all($query, SQLITE_ASSOC);
foreach ($result as $entry) {
    echo 'Name: ' . $entry['name'] . '  E-mail: ' . $entry['id'];
}
?>
